package com.zoro.jianyue.presenter.impl;

import android.content.Context;

import com.zoro.jianyue.interactor.CommonContainerInteractor;
import com.zoro.jianyue.interactor.impl.ImagesContainerInteractorImpl;
import com.zoro.jianyue.presenter.Presenter;
import com.zoro.jianyue.ui.base.BaseLazyFragment;
import com.zoro.jianyue.ui.fragment.ImagesContainerFragment;
import com.zoro.jianyue.view.CommonContainerVidew;

/**
 * Created by CM-ZR on 2016/1/28.
 */
public class ImagesContainerPresenterImpl implements Presenter {
    private Context mContext;
    private CommonContainerInteractor mCommonContainerInteractor;
    private CommonContainerVidew mCommonContainerVidew;

    public ImagesContainerPresenterImpl(Context context, CommonContainerVidew containerVidew) {
        this.mContext = context;
        mCommonContainerVidew = containerVidew;
        mCommonContainerInteractor = new ImagesContainerInteractorImpl();
    }

    @Override
    public void initialized() {
        mCommonContainerVidew.initializePagerViews(mCommonContainerInteractor.getCommonCategoryList(mContext));
    }
}
